<?php

App::uses('CompositeKeyModel', 'Model');

/**
 * MemberChild Model
 *
 * @property Member $Member
 * @property ChildMember $ChildMember
 */
class MemberChild extends CompositeKeyModel {

    //The Associations below have been created with all possible keys, those that are not needed can be removed
    public $useDbConfig = "organisations";
    
    /**
     * belongsTo associations
     *
     * @var array
     */
    public $belongsTo = array(
        'Member' => array(
            'className' => 'Member',
            'foreignKey' => 'member_id',
            'conditions' => '',
            'fields' => '',
            'order' => ''
        ),
        'ChildMember' => array(
            'className' => 'Member',
            'foreignKey' => 'child_member_id',
            'conditions' => '',
            'fields' => '',
            'order' => ''
        )
    );

}
